<?php

/**
 * Page de suppression des cookies de l'appllication
 */

$cookies2Kill = array
				('__UPLOAD_PHOTOS__'
				,'__PHOTOS_MARIAGE__'
				,'__MARIAGE_APP__'
				);

$oneCookieSuppressed = false;
foreach ($cookies2Kill as $cookieName) {
	if (isset($_COOKIE[$cookieName])) {
		setcookie($cookieName, null, 0);
		$oneCookieSuppressed = true;
		echo "Cookie $cookieName supprimé.<br />";
	}
}

if (!$oneCookieSuppressed) {
	echo 'Aucun cookie n\'a été supprimé.<br />';
}